<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/unlogged_php.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php
	if(isset($_COOKIE['studialuserid']))
	{
		header ('location: ../users/homeboard.php?id='.$_COOKIE['studialuserid']);
	}
?>
<!-- InstanceBeginEditable name="doctitle" -->
<title>Chào mừng bạn đến với Studial</title>
<!-- InstanceEndEditable -->
<script type="text/javascript" language="javascript" src="../javascript/forms.js"></script>
<link rel="stylesheet" type="text/css" href="../css/global.css" />
<link rel="stylesheet" type="text/css" href="../css/forms.css" />
<style type="text/css">
	.header	{ height: 90px; }
		
	.logo {
		width: 200px;
		margin-top: 14px;
	}
	
	#logtable	{
		float: right;
		margin-top: 14px;
	}
	
	#logtable td.textcol {
		width: 155px;
		vertical-align: text-top;
		padding-top: 0;
		padding-bottom: 0;
	}
		 
	.headlabel, .sublabel { font-size: 11px; }
	
	.headlabel { color: #ffffff; }
	
	.sublabel {
		color: #96c690;
		vertical-align: top;
	}
	
	.loginput	{
		width: 140px;
		padding: 4px;
		border: 1px solid #105109;
	}
	
	.logcheck { margin-top: 0; }
</style>
<!-- InstanceBeginEditable name="head" -->
<style type="text/css">
	.contentblock {
		background-image: url("../images/bg01.jpg");
		height: 550px;
	}
	
	.rightcontent {
		display: block;
		float: right;
		width: 410px;
		margin-top: 50px;
	}
	
	.intro {
		padding: 0 0 0.5em 1em;
		margin-bottom: 0.5em;
		color: #0e4706;
		border-bottom: 1px solid #91b58c;
	}
	
	.title {
		font-weight: 700;
		font-size: 18px;     
	}
	
	.subtitle {
		font-size: 15px;
		margin-top: 0.2em;
	}
	
	
	.regform {
		padding: 0 1em 0.5em 1em;
		display: block;
		width: 410px;
		color: #0e4706; 
		font-size: 13px;
	} 
</style>
<!-- InstanceEndEditable -->
</head>

<body>
    <div class="header">
        <div class="innercontent">
            <a href="index.php"><img alt="Studial" class="logo" src="../images/logo.jpg" /></a>
            <form id="logform" method="post" action="login.php">
                <table id="logtable">
                    <tr>
                        <td class="textcol"><label class="headlabel" for="username">Tên đăng nhập hoặc email</label></td>
                        <td class="textcol"><label class="headlabel" for="password">Mật khẩu</label></td>
                        <td class="submitcol"></td>
                    </tr>
                    <tr>
                        <td class="textcol"><input class="loginput" name="username" type="text" value="" /></td>
                        <td class="textcol"><input class="loginput" name="password" type="password" value="" /></td>
                        <td class="submitcol"><button class="logbutton" name="login" type="submit" value="1">Đăng nhập</button></td>
                    </tr>
                    <tr>
                        <td class="textcol"><input class="logcheck" name="logcheck" type="checkbox" /><label class="sublabel" for="logcheck">Duy trì đăng nhập</label></td>
                        <td class="textcol"><a class="sublabel" href="identify.php">Quên mật khẩu?</a></td>
                        <td class="submitcol"></td>
                    </tr>
                </table>
            </form>
        </div>
    </div>
    <!-- InstanceBeginEditable name="maincontent" -->
	<div class="contentblock">
    	<div class="innercontent"> 
            <div class="rightcontent">
                <div class="intro">
                    <div class="title">Đăng Ký</div>
                    <div class="subtitle">Miễn phí và đơn giản</div>
                </div>
                <form class="regform" method="post" action="../unlogged/register.php">        
                    <label class="leftlabel" for="lastname">Họ:</label>
                    <input class="textinput" name="lastname" type="text" value="" /> 
                    <label class="leftlabel" for="firstname">Tên:</label>
                    <input class="textinput" name="firstname" type="text" value="" /> 
                    <label class="leftlabel" for="username">Tên đăng nhập:</label>
                    <input class="textinput" name="username" type="text" value="" /> 
                    <label class="leftlabel" for="email">Email của bạn:</label>
                    <input class="textinput" name="email" type="text" value="" />
                    <label class="leftlabel" for="reemail">Nhập lại email:</label>
                    <input class="textinput" name="reemail" type="text" value="" />
                    <label class="leftlabel" for="password">Mật khẩu:</label>
                    <input class="textinput" name="password" type="password" value="" />
                    <label class="leftlabel" for="repassword">Nhập lại mật khẩu:</label>
                    <input class="textinput" name="repassword" type="password" value="" />
                    <label class="leftlabel" for="gender">Bạn là:</label>
                    <select class="dropinput" name="gender" id="gender">
                        <option value="-1" selected="selected">Chọn giới tính:</option>
                        <option value="0">Nữ</option>
                        <option value="1">Nam</option>
                    </select><br />
                    <label class="leftlabel">Ngày sinh:</label>
                    <select class="dropinput" name="day" id="day" onfocus="setDays();">
                        <option value="0" selected="selected">Ngày:</option>
                    </select>
                    <select class="dropinput" name="month" id="month" onfocus="setMonths();" onchange="setDays();">
                        <option value="0" selected="selected">Tháng:</option>
                    </select>
                    <select class="dropinput" name="year" id="year" onfocus="setYears();" onchange="setDays(); setMonths();">
                        <option value="0" selected="selected">Năm:</option>
                    </select>
                    <button class="orangebutton" name="submit" value="1" onclick="showLoader();">Đăng ký</button>
                    <img alt="Loading..." class="loader" id="loader" src="../Images/loader01.gif" />
                </form>
            </div>
    	</div>
    </div>
	<!-- InstanceEndEditable -->
    <div class="footer">
        	Studial @ 2012 - Nhóm 01
    </div>      
</body>
<!-- InstanceEnd --></html>
